package com.L1ngg;

public class text08 {
	public static void main(String[] args) {
	
		
		int number;
		for(int num =100;num<1000;num++) {
			int sum = 0;
			number = num;
			while (number > 0) {  
	            int digit = number % 10;  
	            sum += Math.pow(digit, 3);  
	            number /= 10;  
	        }  
			if(sum == num)
				System.out.println(num);
		}
		 
	}
}
